import request,{createService} from '@utils/request'
import BASE_URL,{tokenKey} from '../javaBaseUrl'
const javaRequest = createService(BASE_URL,tokenKey)
export const getUserBindInfo = (data) => {
    return request.get(`/api/user/getUserInfo?token=${data}`)
	//return request.get(`/api/user/getUserInfo?token=9967f6b08fa246e389f40794827a8592`)
}
export const getUser = (data) => {
    return javaRequest.get(`/login/userinfo`)
}
export const bindUser = (data) => {
    return request.post(`/api/user/bindUser`, data)
}
export default { getUser, bindUser, getUserBindInfo }